import 'package:app_core/app_core.dart';

enum LoginIntl with IntlBase {
  /// 标题
  title,

  /// 注册
  signUp,

  /// 地区
  region,

  /// 邮箱
  email,

  /// 密码
  password,

  /// 确认密码
  confirmPassword,

  /// 忘记密码
  forgotPassword,

  /// 登录
  login,

  /// 请选择地区
  selectRegion,

  /// 请输入邮箱
  enterEmail,

  /// 请输入有效的邮箱地址
  enterValidEmail,

  /// 请输入密码
  enterPassword,

  /// 密码长度不能少于6位
  passwordTooShort,

  /// 两次输入的密码不一致
  passwordsDoNotMatch,

  /// 我理解并同意
  agree,

  /// 隐私政策
  privacyPolicy,

  /// 服务条款
  termsOfService,

  /// 没有账号？注册
  noAccount,

  /// 请确认密码
  enterConfirmPassword,

  /// 密码要求
  passwordRequirement,

  /// 确认
  confirm,

  /// 验证码已发送
  verificationCodeSent,

  /// 重新发送验证码
  resendCode;

  @override
  String get en {
    switch (this) {
      case title:
        return 'Login';
      case signUp:
        return 'Sign Up';
      case region:
        return 'Region';
      case email:
        return 'Email';
      case password:
        return 'Password';
      case confirmPassword:
        return 'Confirm Password';
      case forgotPassword:
        return 'Forgot Password?';
      case login:
        return 'Login';
      case selectRegion:
        return 'Please select a region';
      case enterEmail:
        return 'Please enter an email';
      case enterValidEmail:
        return 'Please enter a valid email address';
      case enterPassword:
        return 'Please enter a password';
      case passwordTooShort:
        return 'Password must be at least 6 characters';
      case passwordsDoNotMatch:
        return 'Passwords do not match';
      case agree:
        return 'I understand and agree to the ';
      case privacyPolicy:
        return 'Privacy Policy';
      case termsOfService:
        return 'Terms of Service';
      case noAccount:
        return "Don't have any account?";
      case enterConfirmPassword:
        return 'Please confirm your password';
      case passwordRequirement:
        return 'Password must be 8-20 characters, including letters, numbers, and may use symbols: !@#\$%^&*';
      case confirm:
        return 'Confirm';
      case verificationCodeSent:
        return 'We have sent a verification code to ';
      case resendCode:
        return "Didn't receive the code? Resend";
    }
  }

  @override
  String get zh {
    switch (this) {
      case title:
        return '登录';
      case signUp:
        return '注册';
      case region:
        return '地区';
      case email:
        return '邮箱';
      case password:
        return '密码';
      case confirmPassword:
        return '确认密码';
      case forgotPassword:
        return '忘记密码？';
      case login:
        return '登录';
      case selectRegion:
        return '请选择地区';
      case enterEmail:
        return '请输入邮箱';
      case enterValidEmail:
        return '电子邮件格式错误';
      case enterPassword:
        return '请输入密码';
      case passwordTooShort:
        return '密码长度不能少于6位';
      case passwordsDoNotMatch:
        return '两次输入的密码不一致';
      case agree:
        return '登录即表示同意';
      case privacyPolicy:
        return '《用户隐私协议》';
      case termsOfService:
        return '《服务条款》';
      case noAccount:
        return "没有账号？";
      case enterConfirmPassword:
        return '请确认密码';
      case passwordRequirement:
        return '密码必须是8-20个字符，包括字母、数字，并且可以使用符号：!@#\$%^&*';
      case confirm:
        return '确认';
      case verificationCodeSent:
        return '我们已经发送了验证码到';
      case resendCode:
        return '没有收到验证码？重新发送';
    }
  }
}
